package top.huxy.boot.controller.publicly;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.huxy.boot.annotation.RequestRemake;
import top.huxy.boot.service.impl.TagServiceImpl;
import top.huxy.boot.util.obj.Result;

/**
 * @Classname TagController
 * @Description TagController
 * @Date 2021/9/1 9:55
 * @Created by huxy
 */
@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    TagServiceImpl tagService;

    @GetMapping("/getAllTags")
    @RequestRemake("获取所有标签")
    public Result getAllTags(){
        return Result.success(tagService.getAllTags());
    }

}
